package com.fengxu.springcloud.service;

import com.fengxu.springcloud.entity.CommonResult;
import com.fengxu.springcloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "nacos-provider-payment", fallback = PaymentFallbackService.class)
@Service
public interface PaymentService {

    @GetMapping("/find/{id}")
    CommonResult<Payment> paymentSQL(@PathVariable("id")Long id);
}
